//
// Created by Kame.Liang on 2021/9/12.
//

#ifndef UNTITLED1_ABSTRACTFACTORY_H
#define UNTITLED1_ABSTRACTFACTORY_H
#include "IPlant.h"
#include "IAnimal.h"
class IAbstractFactory{
public:
    virtual IPlant *makePlant() = 0;
    virtual IAnimal *makeAnimal() = 0;
};

#endif //UNTITLED1_ABSTRACTFACTORY_H


//IAbstractFactory* factor1 = (IAbstractFactory*)reflectFactory->getClassByName("CFactory2");
//if (factor1 != nullptr){
//factor1->makeAnimal()->show();
//factor1->makePlant()->show();
//}